package com.itheima.threadpool2;

import java.util.concurrent.*;

public class PoolDemo {
    public static void main(String[] args) {
        ThreadPoolExecutor pool = new ThreadPoolExecutor(
                3,
                6,
                60,
                TimeUnit.SECONDS,
                new ArrayBlockingQueue<>(3),
                r-> new Thread(r,"th"),
        new java.util.concurrent.ThreadPoolExecutor.AbortPolicy()
        );
    }
}
